package com.hwg.shiliupro.po;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.Date;

@Data
public class Work {
    /**
     * id
     */
    private Integer id;
    /**
     * 工作名称
     */
    @TableField("work_name")
    private String workName;
    /**
     * 工作内容
     */
    @TableField("work_content")
    private String workContent;
    /**
     * 工作状态
     * 0代表用户未完成任务  1代表用户已完成任务
     */
    @TableField("work_status")
    private Integer workStatus;
    /**
     * 检查状态
     * 0 代表未检查 1代表检查通过  2代表检查不通过
     */
    @TableField("check_status")
    private Integer checkStatus;
    /**
     * 完成时间
     */
    @TableField("finish_time")
    private Date finishTime;
    /**
     * 用户id
     */
    @TableField("u_id")
    private Integer uId;

    public Work() {
    }

    public Work(String workName, String workContent, Integer uId) {
        this.workName = workName;
        this.workContent = workContent;
        this.uId = uId;
    }

    public Work(Integer id, String workName, String workContent, Integer workStatus, Integer checkStatus, Date finishTime, Integer uId) {
        this.id = id;
        this.workName = workName;
        this.workContent = workContent;
        this.workStatus = workStatus;
        this.checkStatus = checkStatus;
        this.finishTime = finishTime;
        this.uId = uId;
    }
}
